Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x ] Update Cursor.php #37458

Merged
merged 1 commit into from
May 24, 2021
Merged

[8.x ] Update Cursor.php #37458

merged 1 commit into from
May 24, 2021

Conversation

MostafaRabia
Copy link
Contributor

Order by column that can be null given me "Unable to find parameter [last_answer] in pagination item.".
I solved it by this change and make 2 orders by, first is the id that won't be null, second is "last_answer" that can be null, and worked.

Order by column that can be null given me "Unable to find parameter [last_answer] in pagination item.".
I solved it by this change and make 2 orders by, first is the id that won't be null, second is "last_answer" that can be null, and worked.
@MostafaRabia MostafaRabia changed the title Update Cursor.php [8.x ]Update Cursor.php May 23, 2021
@MostafaRabia MostafaRabia changed the title [8.x ]Update Cursor.php [8.x ] Update Cursor.php May 23, 2021
@antonkomarev
Copy link
Contributor

If there are tests for Cursor it is good to cover this case too

@MostafaRabia
Copy link
Contributor Author

@antonkomarev
How can i make tests for this?
I tested it locally and worked well with orderBy id and last_answer, not only last_anwser or there is another error in another place.
It's mean that the column must not be null, if null so required one that won't be null.
I don't know if is it efficient way to achive that, but this worked for me.

@taylorotwell
Copy link
Member

@paras-malhotra ?

@paras-malhotra
Copy link
Contributor

I think this PR is good to go. 👍

@taylorotwell taylorotwell merged commit d456f60 into laravel:8.x May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants